package com.laowang.project.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**
 * 票种对象 my_cyh_ticket
 *
 * @author laowang
 * @date 2023-06-21
 */
@NoArgsConstructor
@Data
public class MyCyhTicket implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 票名称
     */
    @Excel(name = "票名称")
    @ApiModelProperty(value = "票名称", required = false)
    private String ticket;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间", required = false)
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间", required = false)
    private Date endTime;

    /**
     * 活动id
     */
    @Excel(name = "活动id")
    @ApiModelProperty(value = "活动id", required = false)
    private Integer activityId;

    /**
     * 男票价格
     */
    @Excel(name = "男票价格")
    @ApiModelProperty(value = "男票价格", required = false)
    private BigDecimal manPrice;

    /**
     * 女票价格
     */
    @Excel(name = "女票价格")
    @ApiModelProperty(value = "女票价格", required = false)
    private BigDecimal womanPrice;

    @ApiModelProperty(value = "单价", required = false)
    private BigDecimal price;

    @Transient
    private BigDecimal price1;//折扣完以后的价格

    /**
     * 儿童票
     */
    @Excel(name = "儿童票")
    @ApiModelProperty(value = "儿童票", required = false)
    private BigDecimal childrenPrcie;

    /**
     * 1商家,0下架
     */
    @Excel(name = "1商家,0下架")
    @ApiModelProperty(value = "1商家,0下架", required = false)
    private Integer isEnable;


    /**
     * 人数
     */
    @Excel(name = "人数")
    @ApiModelProperty(value = "已报名人数", required = false)
    private Integer numbers;

    @ApiModelProperty(value = "总人数", required = false)
    private Integer totalNum;

    private Integer isUse;//1可以使用邀请码,0不

    private String invitationCode;//优惠码

    @Transient
    private String activityName; // 活动名称

    @Transient
    private List<Integer> listIds;
}
